/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2022-09-09 17:06:54
 * @LastEditTime: 2022-09-13 22:55:33
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \mybatisplus\src\main\java\com\atguigu\mybatisplus\pojo\User.java
 * @Description:
 */
package com.atguigu.mybatisplus.pojo;

import com.atguigu.mybatisplus.enums.SexEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import lombok.Data;

/**
 * ClassName: User
 * Description:
 * Date: 2022/09/09 PM 5:06
 * <p>
 * project: mybatisplus
 * package: com.atguigu.mybatisplus.pojo
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Data
// 设置实体类所对应的表名
// @TableName("t_user")
public class User {

    // 将属性所对应的字段指定为主键
    // @TableId注解的value属性用于指定主键的字段
    // @TableId(value = "uid", type = IdType.AUTO)
    @TableId("uid")
    private Long id;

    @TableField("user_name")
    private String name;

    private Integer age;

    private String email;

    private SexEnum sex;

    @TableLogic
    private Integer isDeleted;
}
